<?php

namespace app\models\base;

use Yii;

/**
 * This is the model class for table "chindor_project".
 *
 * @property string $project_id
 * @property integer $all_value
 * @property integer $all_gold
 * @property double $all_cost
 * @property double $expected_cost
 * @property integer $activity_num
 * @property string $desc
 * @property integer $create_user_id
 * @property integer $create_time
 * @property integer $continued_time
 * @property integer $finish_time
 * @property string $name
 * @property integer $surplus_value
 * @property integer $surplus_gold
 * @property integer $status
 * @property integer $last_modify
 * @property integer $disabled
 */
class Project extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'chindor_project';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [[ 'all_gold', 'activity_num', 'create_user_id', 'create_time', 'continued_time', 'finish_time', 'surplus_gold', 'status', 'last_modify', 'disabled','tid'], 'integer'],
            [['all_cost', 'expected_cost','surplus_cost', 'surplus_value','all_value','original_all_value'], 'number'],
            [['desc'], 'string'],
            [['name'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'project_id' => 'Project ID',
            'all_value' => 'All Value',
            'all_gold' => 'All Gold',
            'all_cost' => 'All Cost',
            'expected_cost' => 'Expected Cost',
            'activity_num' => 'Activity Num',
            'desc' => 'Desc',
            'create_user_id' => 'Create User ID',
            'create_time' => 'Create Time',
            'continued_time' => 'Continued Time',
            'finish_time' => 'Finish Time',
            'name' => 'Name',
            'surplus_value' => 'Surplus Value',
            'surplus_gold' => 'Surplus Gold',
            'status' => 'Status',
            'last_modify' => 'Last Modify',
            'disabled' => 'Disabled',
        ];
    }
}
